package com.sunshine.user.service;

import com.sunshine.user.entity.UserAddresses;
import sunshine.commcon.util.entity.Result;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

public interface UserAddressesService {

    /**
     * 查找用户收货地址
     */
    Result<List<UserAddresses>> findUserAddressesByToken(UserAddresses userAddresses);

    /**
     * 添加用户收货地址
     */
    Result<Boolean> addUserAddresses(UserAddresses userAddresses);

    /**
     * 删除用户收货地址
     */
    Result<Boolean> deleteAddressById(Long addressId, Long userId);
}